<template>
  <!-- 质检合格率 -->
  <div class="allBox">
    <h1>质检合格率</h1>
    <div class="allContent">
      <div class="progressThreeBox allDisCenter">
        <ul>
          <li>
            <p class="colorOne">
              <el-progress type="circle" :stroke-width="10" color="#5F52A0" :percentage="qaList.purchaseRate"></el-progress>
            </p>
            <span>采购检</span>
          </li>
          <li>
            <p>
              <el-progress type="circle" :stroke-width="10" color="#556FB5" :percentage="qaList.procedureRate"></el-progress>
            </p>
            <span>工序检</span>
          </li>
          <li>
            <p>
              <el-progress type="circle" :stroke-width="10" color="#13B5B1" :percentage="qaList.productRate"></el-progress>
            </p>
            <span>成品检</span>
          </li>
        </ul>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    qaList: {
      type: Object,
      default: {}
    }
  },
  data() {
    return {}
  },
  watch: {},
  mounted() {},
  methods: {}
}
</script>
<style lang='scss' scoped>
/* 进度条样式 */
.progressThreeBox {
  padding: 0 20px 0 20px;
  height: 100%;
  overflow: hidden;
  ul {
    width: 100%;
    overflow: hidden;
    li {
      width: 33.3333%;
      float: left;
      text-align: center;
      padding: 5px;

      span {
        height: 35px;
        line-height: 35px;
        color: #fff;
        font-size: 16px;
      }

      p {
        height: calc(100% - 35px);
        margin: 0;
      }
    }
  }
}
</style>
<style lang='scss'>
.progressThreeBox {
  .el-progress--circle {
    display: block !important;
  }
  .el-progress-circle {
    width: 100% !important;
    height: 100% !important;
  }
}
</style>
